package io.hx.modules.rep.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.hx.modules.hos.entity.AppointmentEntity;
import io.hx.modules.patient.entity.PatientUserEntity;
import io.hx.modules.sys.entity.SysUserEntity;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 诊断报告
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2023-03-21 11:28:39
 */
@Data
@TableName("rep_diagnostic")
public class DiagnosticEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Integer id;
	/**
	 * 患者id
	 */
	private Integer userId;
	private Integer appointmentId;

	//级联用户表
	@TableField(exist = false)
	private PatientUserEntity user;

	//级联预约表
	@TableField(exist = false)
	private AppointmentEntity appointmentEntity;

	/**
	 * 报告名称
	 */
	private String reportName;
	/**
	 * 上传时间
	 */
	private Date uploadTime;
	/**
	 * 开方医生
	 */
	private Integer sysUserId;
	/**
	 * 状态，0：未通过，1：待审核，2：已完成
	 */
	private Integer status;
	/**
	 * 报告内容
	 */
	private String content;

	@TableField(exist = false)
	private SysUserEntity sysUserEntity;

	private BigDecimal money;

	@Override
	public String toString() {
		return "DiagnosticEntity{" +
				"id=" + id +
				", userId=" + userId +
				", appointmentId=" + appointmentId +
				", user=" + user +
				", appointmentEntity=" + appointmentEntity +
				", reportName='" + reportName + '\'' +
				", uploadTime=" + uploadTime +
				", sysUserId=" + sysUserId +
				", status=" + status +
				", content='" + content + '\'' +
				", sysUserEntity=" + sysUserEntity +
				'}';
	}
}
